[NET] Reflection

Posted by pipiscrew on Stack Overflow See other posts from Stack Overflow or by pipiscrew
Published on 2010-05-26T20:09:01Z Indexed on 2010/05/26 20:11 UTC
Read the original article Hit count: 166

Filed under:
|

using :

 Dim a As [Assembly] = [Assembly].LoadFile("C:\test.exe")


 Dim testTP As Type
 testTP = a.GetType("SplashScreen", True, True)

 obj1 = Activator.CreateInstance(withoutFOR)

 obj1.show()

my prog made reflection to test.exe > SplashScreen loaded , also obj1 filled

when SplashScreen disposed -> MainForm loaded > the obj1 isnothing!

when try to access obj1 VS say :

AccessibilityObject = {"Cannot access a disposed object. Object name: 'SplashScreen'."}

I want always obj1 filled from the active form!! how????

© Stack Overflow or respective owner

Related posts about .NET

Related posts about reflection